class AlbumListItemInfo {
  List<int> files;
  int id;
  String name;
  String rPath;
  String thumb;

  AlbumListItemInfo({this.files, this.id, this.name, this.rPath, this.thumb});

  factory AlbumListItemInfo.fromJson(Map<String, dynamic> json) {
    return AlbumListItemInfo(
      files: json['files'] != null ? new List<int>.from(json['files']) : null,
      id: json['id'],
      name: json['name'],
      rPath: json['r_path'],
      thumb: json['thumb'],
    );
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    data['r_path'] = this.rPath;
    data['thumb'] = this.thumb;
    if (this.files != null) {
      data['files'] = this.files;
    }
    return data;
  }
}